package com.tian.view.common

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.tian.view.databinding.ScrollLinearLayoutBinding

/**
 * @author tiansongtao
 * @date 2023/1/5 11:01
 */
abstract class BaseScrollFragment : Fragment() {

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        val b = ScrollLinearLayoutBinding.inflate(inflater, container, false)
        initView(b)
        return b.root
    }

    abstract fun initView(b: ScrollLinearLayoutBinding)

}